public/xen.h: add a definition for a 'valid domid' mask
authorPaul Durrant <pdurrant@amazon.com>
Wed, 19 Feb 2020 08:53:31 +0000 (08:53 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Mon, 24 Feb 2020 17:17:35 +0000 (17:17 +0000)
commit69ad573c2bbbce84d09bce988e7adc3cdafccc06
treea5be7d45b57710b1955e26b46863a1832599d1fb
parent2b02882ebbbc5225182824fb66b1fb80724bb22a
public/xen.h: add a definition for a 'valid domid' mask

A subsequent patch will modify libxl to allow selection of a random domid
value when creating domains. Valid values are limited to a width of 15 bits,
so add an appropriate mask definition to the public header.

NOTE: It is reasonable for this mask definition to be in a Xen public header
      rather than in, say, a libxenctrl header since it relates to the
      validity of a value passed to XEN_DOMCTL_createdomain. This new
      definition is placed in xen.h rather than domctl.h only to co-locate
      it with other domid-related defitions.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Julien Grall <julien@xen.org>
xen/include/public/xen.h